<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件简写和事件对象</title>
    <script src="js/vue.js"></script>
    <script>
        window.onload = function() {
            new Vue({
                el: '#itany',
                methods: {
                    show() {
                        console.log("111");
                    },
                    print(e) {
                        console.log(e.target.innerHTML);
                        console.log(this);
                    }
                }
            });
        }
    </script>
</head>
<body>
    <div id="itany">
        <button v-on:click="show">点我</button>
        <button @click="show">点我</button>
        <br/>
        <button @click="print($event)">click me</button>
    </div>
</body>
</html>